CruiseControl.NET : Using CruiseControl.NET with Simian
This page last changed on Mar 31, 2005 by mbharadwaj@yahoo.com.
Run Simian as part of your integrationRun Simian as part of your NAnt buildIn order to get the results of Simian included in the CruiseControl.NET build results, you will need to include a call to simian.exe in your NAnt build file. We recommend you use a target like this: <target name="simian" depends="compile" description="finds duplicate code"> <exec program="tools\simian\simian.exe"> <arg value="-recurse=*.cs"/> <arg value="-formatter=xml:build\log\simian.xml"/> </exec> </target> The above example runs simian on all .cs files from the project home directory. Run "simian" in order to see what command-line options are supported. For a thorough example, look at the CruiseControl.NET source distribution and look at how we use Simian ourselves.Run Simian as a CruiseControl.NET TaskWe don't currently support running Simian directly from CruiseControl.NET, but we plan on enabling this in a later release.Merge Simian results into your CruiseControl.NET resultsThe next step is to merge the Simian report file into the integration result using the File Merge Task. Your CruiseControl.NET Server config file will have something in it like :<tasks> <merge> <files> <file>d:\sourceforge\ccnet\build\log\unit-test.xml</file> <!-- Add your simian report file as follows --> <file>d:\sourceforge\ccnet\build\log\simian.xml</file> </files> </merge> </tasks> Configuring your Reporting Application to display Simian resultsFor displaying the results, CruiseControl.NET currently supports Simian 2.2.3.If you are using the Web Dashboard, edit your dashboard.config file and include the SimianSummary.xsl file under the <dashboard>/<plugins>/<buildPlugins>/<buildReportBuildPlugin>/<xslFileNames> section like: <xslFile>xsl\SimianSummary.xsl</xslFile> <xslReportBuildPlugin description="Simian Report" actionName="SimianBuildReport" xslFileName="xsl\SimianReport.xsl" />
|
Document generated by Confluence on Jun 26, 2005 17:23 |